package com.qf.controller;

import com.qf.fegin.StuFegin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cls")
public class ClsController {

    @Autowired
    private StuFegin stuFegin;

    @RequestMapping("/query/{cid}")
    public String clsMethod(@PathVariable Integer cid){
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("查询班级为：" + cid + "班");
        stringBuilder.append("班级学员信息：" + stuFegin.stuList(cid));

        return  stringBuilder.toString();
    }
}
